import { IsString, IsArray, IsNotEmpty, IsEnum } from 'class-validator';
import { ContentType } from '../entities/content.entity';

export class CreateContentDto {
  @IsString()
  @IsNotEmpty()
  title: string;

  @IsEnum(ContentType)
  @IsNotEmpty()
  type: ContentType;

  @IsArray()
  @IsNotEmpty()
  items: string[];

  @IsArray()
  tags: number[];
}